load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
    name = "oidext",
    srcs = ["oidext.go"],
    importpath = "github.com/cockroachdb/cockroach/pkg/sql/oidext",
    visibility = ["//visibility:public"],
    deps = ["@com_github_lib_pq//oid"],
)

go_test(
    name = "oidext_test",
    size = "small",
    srcs = ["oidext_test.go"],
    embed = [":oidext"],
    deps = [
        "@com_github_lib_pq//oid",
        "@com_github_stretchr_testify//require",
    ],
)
